package com.yawn.demomybatis.dao;

import com.yawn.demomybatis.entity.School;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface SchoolDao {

    @Select("select * from school where id=#{id}")
    School get(@Param("id") int id);
}
